package accounting_system;

import java.util.ArrayList;

public class PersonsList{
    private final ArrayList<Person> personsList = new ArrayList();
    
    
    public void addPerson(Person person){
        personsList.add(person);
    }
    
    public void removePerson(Person person){
        personsList.remove(person);
    }
    
    public PersonsList getList(){
        return this;
    }
    
    public int getSize(){
        return personsList.size();
    }
    
    public Person getPerson(int index){
        return personsList.get(index);
    }
    
    
}
